Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added clearing reminder, bug fix for #190 and #163, and changed date description for reminder deadline #203

Conversation

minpyaemoe
Copy link

@minpyaemoe minpyaemoe commented Nov 2, 2019

Copy link

@Nanosync Nanosync left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please also add the user guide information.

@minpyaemoe minpyaemoe changed the title Added clearing reminder, bug fix and changed date description for reminder deadline Added clearing reminder, bug fix for #190 and #163, and changed date description for reminder deadline Nov 2, 2019
@minpyaemoe minpyaemoe requested a review from Nanosync November 2, 2019 15:14
Copy link

@Nanosync Nanosync left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some documentation changes required

@@ -467,20 +467,25 @@ A graph is shown.
// end::graph[]

=== Adding a reminder: `reminder add`
Adds a reminder to the reminder list
Adds a reminder to the reminder list when user enters a new reminder. Deadline and reminder message are recorded into storage.
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't have to mention that it is recorded into storage.

*Format:* `reminder add d/DATE m/MESSAGE`

[NOTE]
The date of a deadline must be within 5 years from the current date. MoneyGoWhere will check if the given reminder message and deadline are valid. If it encounters invalid information such as empty message, the application will notify with error.
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If it encounters invalid information such as an empty message, the application will display an error.

@@ -613,6 +618,9 @@ The most recent undo command is reversed.
Clears all entries from the application. +
*Format:* `clear`

[NOTE]
This command clears all the stored information which includes reminders and spending , and also reset the application to the initial state with budget set to $1000.
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This command clears all stored information, including reminders and spending, and sets the budget to a default value of $1000.

ReminderMessage message = ParserUtil.parseMessage(reminderMessage);

if (date.dateValue.isAfter(LocalDate.now())
&& date.dateValue.getYear() - LocalDate.now().getYear() > ParserUtil.DATE_TOO_FAR_RANGE) {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could probably also limit this to past reminders. Reminders 5 years ago should not be added.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess we can. May be the spending as well?

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good consideration, can create an issue

@minpyaemoe minpyaemoe requested a review from Nanosync November 3, 2019 04:09
@@ -467,12 +467,12 @@ A graph is shown.
// end::graph[]

=== Adding a reminder: `reminder add`
Adds a reminder to the reminder list when user enters a new reminder. Deadline and reminder message are recorded into storage.
Adds a reminder to the reminder list when user enters a new reminder. This command records a reminder together with its message and deadline.
Copy link

@Nanosync Nanosync Nov 3, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adds a reminder to the reminder list. Key information such as deadline and message are recorded.

Please change this line to the above so that the description is clearer and to avoid repetition. It should match the format input sequence being described.

Apart from this, everything else looks fine!

@minpyaemoe minpyaemoe merged commit c60db1a into AY1920S1-CS2103T-F13-3:master Nov 4, 2019
@choongyx choongyx added this to the v1.4 milestone Nov 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Reminder message can be blank Adding spendings with special characters
3 participants